home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / usenet / sources / volume90 / util / xsize_1.0 / xsize.h < prev    next >
C/C++ Source or Header  |  1990-03-03  |  973b  |  33 lines

  1. #include <intuition/intuitionbase.h>
  2. #ifdef AZTEC_C
  3. #include <functions.h>
  4. struct IORequest *CreateExtIO(); /* This is a kludge that is necessary    */
  5.                                  /* since this definition is missing from */
  6.                                  /* manx's <functions.h> include file.    */
  7. #endif AZTEC_C
  8. #include <devices/input.h>
  9. #include <devices/keymap.h>
  10. #include <devices/console.h>
  11. #include <devices/clipboard.h>
  12. #include <exec/memory.h>
  13. #include <exec/interrupts.h>
  14. #include <graphics/gfxmacros.h>
  15. #include <libraries/dos.h>
  16.  
  17. #define Create(_Obj)     AllocMem((LONG)sizeof(struct _Obj), MEMF_PUBLIC|MEMF_CLEAR)
  18. #define Kill(_Obj)       FreeMem(_Obj, (LONG)sizeof(*_Obj))
  19. #define Delete(_Obj)     if (_Obj) FreeMem(_Obj, (LONG)sizeof(*_Obj))
  20.  
  21. #define XSIZERSRC "XSize.resource"
  22.  
  23. struct XSizeRsrc {
  24.     struct Node node;
  25.     struct Task *Task;
  26.     WORD qual;
  27. };
  28.  
  29. #define waiting     0
  30. #define startframe  1
  31. #define dragging    2
  32. #define changing    3
  33.